
package com.base.commons.tools.security.user;


import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 登录用户信息
 *
 * @author carl
 * @since 1.0.0
 */
@Data
public class UserDetail {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "用户id")
    @JSONField(name = "UserId")
    private Long userId;

    @ApiModelProperty(value = "用户编码")
    @JSONField(name = "UserCode")
    private String userCode;

    @ApiModelProperty(value = "用户姓名")
    @JSONField(name = "UserName")
    private String userName;

    @ApiModelProperty(value = "客户端代码")
    @JSONField(name = "CustomerCode")
    private String customerCode;

    @ApiModelProperty(value = "过期时间")
    @JSONField(name = "exp")
    private Long exp;
    @ApiModelProperty(value = "用户英文名称")
    private String userNameEn;

    @ApiModelProperty(value = "用户状态 0：停用,1：启用,2:弃用	")
    private Integer userStatus;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    @ApiModelProperty(value = "电话号码")
    private String telPhone;

    @ApiModelProperty(value = "主管姓名")
    private String chargeName;

    @ApiModelProperty(value = "账号类型  0: 普通用户,1 :超级管理员	")
    private Integer accountType;

    @ApiModelProperty(value = "工号")
    private String workCode;
    /**
     * 帐户是否可用
     */
    private boolean isEnabled = true;
}